package com.hzdl.apple.dao;

import java.sql.Connection;
import java.util.List;

import com.hzdl.apple.bean.cart.Order;
import com.hzdl.apple.bean.cart.OrderItem;


/**
 * 订单
 */
public interface OrderDao {

 	boolean	addOrder(Order order,Connection conn);
 	
 	int getId(Connection conn);
 	/* 插入订单项 */
 	boolean addOrderItem(OrderItem item,Connection conn,int UID);
	
 	/*获取订单项*/
 	List<OrderItem> getOrderItem(int UID,int OID);
 	/*获取订单*/
 	List<Order> getOrder(int UID);
 	
 	boolean changeTypeByUOID(int OID,int type);
}
